//引入封装的公共的请求插件
import { POST, UPLOAD } from '@/service/request.js'
import Record from '../../components/business/record.vue'

export default {
    login(data = {}) {
        return POST({
            url: '/business/login',
            params: data
        })
    },
    register(data = {}) {
        return POST({
            url: '/business/register',
            params: data
        })
    },
    check(data = {}) {
        return POST({
            url: '/business/check',
            params: data
        })
    },
    profile(data = {}) {
        return UPLOAD({
            url: '/business/profile',
            params: data
        })
    },
    sendemail(data = {}) {
        return POST({
            url: 'business/sendemail',
            params: data
        })
    },
    email(data = {}) {
        return POST({
            url: 'business/email',
            params: data
        })
    },
    coupon(data = {}) {
        return POST({
            url: '/business/coupon',
            params: data
        })
    },
    Poster(data = {}) {
        return UPLOAD({
            url: '/business/poster',
            params: data
        })
    },
    member(data = {}) {
        return POST({
            url: '/business/member',
            params: data
        })
    },
    getImage(data = {}) {
        return GetImage({
            url: data.url
        })
    },
    Commission(data = {}) {
        return POST({
            url: '/business/commission',
            params: data
        })
    },
    Cont(data = {}) {
        return POST({
            url: '/business/cont',
            params: data
        })
    },
    record(data = {}) {
        return POST({
            url: '/business/record',
            params: data
        })
    },
    rechange(data = {}) {
        return POST({
            url: '/business/rechange',
            params: data
        })
    },
    Recover(data = {}) {
        return POST({
            url: '/business/recover',
            params: data
        })
    },
    deposit(data = {}) {
        return POST({
            url: '/business/deposit',
            params: data
        })
    },
    productlist(data = {}) {
        return POST({
            url: '/business/productlist',
            params: data
        })
    },
    paystatus(data = {}) {
        return POST({
            url: '/business/paystatus',
            params: data
        })
    },
    recharge(data = {}) {
        return POST({
            url: '/business/recharge',
            params: data
        })
    },
}